import { toSuccess, useEntityManager } from "@sker/core"
import { AutoTask, AutoTaskScript, AutoUser } from "@sker/entities"


export default async () => {
    const list = await useEntityManager(async m => {
        return await m.find(AutoTask, { order: { id: 'desc' } })
    })
    return toSuccess(list, list.length)
}